<template>
    <div class="appcard-container">
        <div class="card-top">
            <img :src="app.url" class="card-logo">
            <span class="card-name">{{app.name}}</span>
        </div>
        <div class="card-body">
            <div class="left">
                <div>Active Users</div>
                <div>{{app.active}}</div>
            </div>
            <div class="right">
                <div>Add Users</div>
                <div>{{app.add}}</div>
            </div>
        </div>
        <div class="card-footer">
            <div class="icon-item">
                <i class="el-icon-delete"></i>
            </div>
             <div class="icon-item">
                <i class="el-icon-phone"></i>
            </div>
             <div class="icon-item">
                <i class="el-icon-star-off"></i>
            </div>
             <div class="icon-item">
                <i class="el-icon-more"></i>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props:["app"],
    data(){
        return{

        }
    }
}
</script>


<style lang="scss" scoped>
.appcard-container{
    width: 350px;
    height: 190px;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    margin: 5px 13px;
    .card-top{
        display: flex;
        flex-direction: row;
        padding: 10px;
        .card-logo{
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        .card-name{
            margin: 0 15px;
            font-weight: bold;
            line-height: 40px;
            font-size: 18px;
        }
    }
    .card-body{
        padding: 10px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        border-bottom: 1px solid #e8e8e8;
        padding-bottom: 30px;
        .left,.right{
            flex: 1;
            text-align: center;
            div:first-child{
                color: #666;
                font-size: 12px;
                margin-bottom: 8px;
            }
        }
    }
    .card-footer{
        display: flex;
        flex-direction: row;
        height: 50px;
        .icon-item{
            flex: 1;
            cursor: pointer;
            text-align: center;
            line-height:30px;
            height: 30px;
            margin-top: 10px;
            border-right: 1px solid #e8e8e8;
            &:last-child{
                border: none;
            }
        }
    }
}
</style>
